package yxy.cherry.battle.module;

/** 属性类型 */
public enum
PropertyType {
	P_攻击(1), //
	P_生命(2), //
	P_防御(3), //
	P_法防(4), //
	P_暴击(5), //
	P_抗暴(6), //
	P_暴伤(7), //
	P_韧性(8), //
	P_控制(9), //
	P_抗控(10), //
	P_命中(11), //
	P_闪避(12), //
	P_治疗(13), //
	P_受疗(14), //
	P_增伤(15), //
	P_法增(16), //
	P_减伤(17), //
	P_法减(18), //
	P_攻击增幅(21), //
	P_生命增幅(22), //
	P_防御增幅(23), //
	P_法防增幅(24), //
	P_速度(27), //
	P_速度增幅(28), //
	;

	private int number;

	private PropertyType(int number) {
		this.number = number;
	}

	public int getNumber() {
		return number;
	}

	static public PropertyType forNumber(int number) {
		switch (number) {
		case 1:
			return P_攻击;
		case 2:
			return P_生命;
		case 3:
			return P_防御;
		case 4:
			return P_法防;
		case 5:
			return P_暴击;
		case 6:
			return P_抗暴;
		case 7:
			return P_暴伤;
		case 8:
			return P_韧性;
		case 9:
			return P_控制;
		case 10:
			return P_抗控;
		case 11:
			return P_命中;
		case 12:
			return P_闪避;
		case 13:
			return P_治疗;
		case 14:
			return P_受疗;
		case 15:
			return P_增伤;
		case 16:
			return P_法增;
		case 17:
			return P_减伤;
		case 18:
			return P_法减;
		case 21:
			return P_攻击增幅;
		case 22:
			return P_生命增幅;
		case 23:
			return P_防御增幅;
		case 24:
			return P_法防增幅;
		case 27:
			return P_速度;
		case 28:
			return P_速度增幅;
		default:
			return null;
		}
	}

}
